//
//  AddressDeleteView.m
//  WeiYiMei
//
//  Created by 李叶夫 on 2019/4/14.
//  Copyright © 2019年 liyefu. All rights reserved.
//

#import "AddressDeleteView.h"

@implementation AddressDeleteView

- (void)setupSubViews
{
    self.backgroundColor = [UIColor clearColor];
    UIButton *btn = [[UIButton alloc] init];
    [btn setTitle:@"删除当前地址" forState:UIControlStateNormal];
    btn.titleLabel.font = [UIFont systemFontOfSize:15];
    [btn setTitleColor:kColorFF2C2C forState:UIControlStateNormal];
    [btn setBackgroundColor:[UIColor whiteColor]];
    [self addSubview:btn];
    [btn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self);
        make.height.equalTo(@48);
    }];
    
    [btn addTarget:self action:@selector(clickAction:) forControlEvents:UIControlEventTouchUpInside];
}

- (void)clickAction:(id)sendr
{
    if (self.deleteHandler) {
        self.deleteHandler();
    }
}

@end
